<?php

/**
 * Description of Metadata
 *
 * @author DENY PRASETIA TW
 * http://denyprasetiatw.blogspot.com/
 * Created Feb 10, 2012 - 8:33:15 PM
 */
class Metadata extends CI_Model{

    private $namaTabel = 'T_METADATA';
    private $query;
    
    public function __construct() {
        parent::__construct();
    }
    
/*==============================================================*/
/* FUNCTION UNTUK MENANGANI INSERT METADATA
 * IDPEGAWAI, NAMAPEGAWAI, PASSWORD, HAKAKSES, STATUSPEGAWAI*/
/*==============================================================*/   
     public function insertMetadata($input) {
         $this->query= array(
            'NOSURAT'         => $input['noSurat'],
            'IDSUB'           => $input['idSub'],
            'IDKATEGORI'      => $input['idKategori'],
            'IDPEGAWAI'       => $input['idPegawai'],
            'IDSIFAT'         => $input['idSifat'],
            'NOURUT'          => $input['noUrut'],
            'TANGGALMK'       => $input['tanggalMK'],
            'ASALSRT'         => $input['asalSrt'],
            'RINGKASAN'       => $input['ringkasan'],
            'LAMPIRAN'        => $input['lampiran'],
            'PENGOLAHAN'      => $input['pengolahan'],
            'DITERUSKAN'      => $input['diteruskan'],
            'DISIMPAN'        => $input['disimpan'],
            'KETERANGAN'      => $input['keterangan'],
            'LEMBAR'          => $input['lembar'],
            'STATUSMETADATA'  => '1',
        );
        $this->db->insert($this->namaTabel,  $this->query);
    }
    
}

?>
